import { network } from '@/utils';

import { logisCenter } from '../../../../../config/Apis';

export async function queryProblemList(params: any) {
  return network.get(logisCenter.problem_order_list, { params });
}

export async function queryProblemCount(params: any) {
  return network.get(logisCenter.problem_order_count, { params });
}

export async function queryProblemStatus() {
  return network.get(logisCenter.problem_order_status);
}

export async function cancelDelivery(params: any) {
  return network.post(logisCenter.problem_order_cancelDelivery, { data: params });
}

export async function confirmDelivery(params: any) {
  return network.post(logisCenter.problem_order_confirmDelivery, { data: params });
}
